#ifndef __PNMSGDEF_H__
#define __PNMSGDEF_H__

/**
*@file       pnmsgdef.h
*@brief      definations of messages
*
*@author     graywind
*@version    1.0.0.0
*@data       2011/11/17
*/

#include "boost/asio.hpp"
#include "../common.h"

///net service relative
namespace pnNetlib
{
	#pragma     pack(push   ,1) 
	///@brief    basic message struct
	struct stPnMsgHeader
	{
		///@brief         msg buffer length
		unsigned   long       ulMsgLength;
		///@brief         msg id
		unsigned   long       ulMsgID;
	};
    #pragma pack(pop)

	enum { header_size = sizeof(stPnMsgHeader) };
};

#endif